package com.fj.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.fj.mapper.AdPromotionMapper;
import com.fj.entity.AdPromotion;
import com.fj.service.AdPromotionService;
@Service
public class AdPromotionServiceImpl implements AdPromotionService{

    @Resource
    private AdPromotionMapper adPromotionMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return adPromotionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AdPromotion record) {
        return adPromotionMapper.insert(record);
    }

    @Override
    public int insertSelective(AdPromotion record) {
        return adPromotionMapper.insertSelective(record);
    }

    @Override
    public AdPromotion selectByPrimaryKey(Long id) {
        return adPromotionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(AdPromotion record) {
        return adPromotionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AdPromotion record) {
        return adPromotionMapper.updateByPrimaryKey(record);
    }

}
